package agile.tools.domain;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

public class Account extends BaseDomainObject {
	private int accountNumber;
	private float balance;
	private Date lastUpdate;
	Map<String, String> someMap = new HashMap<String, String>();
	
	public Map<String, String> getSomeMap() {
		return someMap;
	}

	public void setSomeMap(Map<String, String> someMap) {
		this.someMap = someMap;
	}

	public Account() {
		initMap();
	}
	
	private void initMap() {
		someMap.put("A", "100");
		someMap.put("B", "200");
	}
	
	public Account(int accountNumber, float balance) {
		this.accountNumber = accountNumber;
		setBalance(balance);
		initMap();
	}
	
	public int getAccountNumber() {
		return accountNumber;
	}
	public void setAccountNumber(int accountNumber) {
		this.accountNumber = accountNumber;
	}
	public float getBalance() {
		return balance;
	}
	public void setBalance(float balance) {
		this.balance = balance;
		lastUpdate = new Date();
	}
	public Date getLastUpdate() {
		return lastUpdate;
	}
//	public String toString() {
//		return "Account : " + accountNumber + ", Balance : " + balance + ", Last Updated : " + lastUpdate;
//	}
}